#ifndef __DHT11_H
#define __DHT11_H

#include "stm32f4xx.h"
#include "sys.h"
#include "delay.h"

#define u_char unsigned char

#define DQ_OUT PGout(9)
#define DQ_IN  PGin(9)

void DHT11_Init(void);
void DHT11_Mode(GPIOMode_TypeDef Mode);
int DHT11_Start(void);
u_char DHT11_Read_Byte(void);
int DHT11_Read(u_char *data);

#endif
